package com.cloudbroker.bcs.common.emoji;

/**
 * Created by xuyn15828 on 2016/4/26.
 */
public enum Fitzpatrick {
    TYPE_1_2("\ud83c\udffb"),
    TYPE_3("\ud83c\udffc"),
    TYPE_4("\ud83c\udffd"),
    TYPE_5("\ud83c\udffe"),
    TYPE_6("\ud83c\udfff");

    public final String unicode;

    private Fitzpatrick(String unicode) {
        this.unicode = unicode;
    }

    public static Fitzpatrick fitzpatrickFromUnicode(String unicode) {
        Fitzpatrick[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            Fitzpatrick v = var1[var3];
            if(v.unicode.equals(unicode)) {
                return v;
            }
        }

        return null;
    }

    public static Fitzpatrick fitzpatrickFromType(String type) {
        try {
            return valueOf(type.toUpperCase());
        } catch (IllegalArgumentException var2) {
            return null;
        }
    }
}
